<?php

namespace app\service;

use app\popo\dto\ShoppingCartDTO;
use app\popo\model\ShoppingCart;

interface ShoppingCartService
{
    /**
     * 添加购物车
     * @param ShoppingCartDTO $shoppingCartDTO
     * @return void
     */
    public function addShoppingCart(ShoppingCartDTO $shoppingCartDTO): void;

    /**
     * 查看购物车
     * @return array
     */
    public function showShoppingCart(): array;

    /**
     * 清空购物车
     * @return void
     */
    public function cleanShoppingCart(): void;

    /**
     * 删除购物车中一个商品
     * @param ShoppingCartDTO $shoppingCartDTO
     * @return void
     */
    public function subShoppingCart(ShoppingCartDTO $shoppingCartDTO): void;
}